<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:60:"D:\phpstudy_pro\WWW\hsycmsv1/app/hsycms\view\cate\index.html";i:1534992567;s:60:"D:\phpstudy_pro\WWW\hsycmsv1\app\hsycms\view\index\head.html";i:1533175385;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HSYCMS后台管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="/public/layui/css/layui.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" type="text/css" href="/public/admin/css/touchTouch.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="/public/admin/css/admin.css?v=<?php echo time(); ?>" />
<script src="/public/admin/js/jquery.js?v=<?php echo time(); ?>"></script>
<script src='/public/tinymce/tinymce.min.js'></script>
<script src="/public/admin/js/validform5.3.2min.js"></script>
<script src="/public/layer//layer.js?v=<?php echo time(); ?>"></script>
<script src="/public/layui/layui.js?v=<?php echo time(); ?>"></script>
<script src="/public/admin/js/touchTouch.jquery.js"></script> 
<script src="/public/admin/js/admin.js?v=<?php echo time(); ?>"></script>
</head>
<body>

<div class="box">
    <div class="box-head">
  	  <a href="<?php echo url('add',['nid'=>$nid]); ?>" class="btn"><i class="icon-plus-square-o"></i>添加分类</a>
      <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a> </div>
    <table class="table">
      <tr>
        <th width="100">ID</th>        
        <th style="text-align:left">分类名称</th>
        <th style="text-align:left">网址URL名称</th>
        <th>是否显示</th>
        <th>排序</th>
        <th width="200">操作</th>
      </tr>
      <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
      <tr>
        <td><?php echo $v['id']; ?></td>       
        <td style="text-align:left"><?php echo $v['title']; ?></td>
        <td style="text-align:left"><?php echo $v['entitle']; ?></td>
        <td><?php if($v['isshow'] == 1): ?><font color="#00CC99">显示</font><?php else: ?>隐藏<?php endif; ?></td>
        <td><input type="text" class="sorttext" value="<?php echo $v['sort']; ?>"  onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" 
        onblur="sycms.sorts('<?php echo url('sorts'); ?>',<?php echo $v['id']; ?>,this.value);" /></td>
        <td>
        <a href="<?php echo url('add',['id'=>$v['id'],'nid'=>$v['nid']]); ?>" class="btn"><i class="icon-edit"></i> 编辑</a>
        <a href="javascript:void(0);" onclick="sycms.del('<?php echo url('del',['id'=>$v['id']]); ?>')" class="btn red"><i class="icon-trash-o"></i> 删除</a>
        </td>
      </tr>
      <?php if(is_array($v['son']) || $v['son'] instanceof \think\Collection || $v['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $v['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <tr>
        <td><?php echo $vo['id']; ?></td>       
        <td style="text-align:left; color:#0CC">&nbsp;&nbsp;&nbsp;&nbsp;|--<?php echo $vo['title']; ?></td>
        <td style="text-align:left"><?php echo $vo['entitle']; ?></td>
        <td><?php if($vo['isshow'] == 1): ?><font color="#00CC99">显示</font><?php else: ?>隐藏<?php endif; ?></td>
        <td><input type="text" class="sorttext" value="<?php echo $vo['sort']; ?>"  onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" 
        onblur="sycms.sorts('<?php echo url('sorts'); ?>',<?php echo $vo['id']; ?>,this.value);" /></td>
        <td>
        <a href="<?php echo url('add',['id'=>$vo['id'],'nid'=>$vo['nid']]); ?>" class="btn"><i class="icon-edit"></i> 编辑</a>
        <a href="javascript:void(0);" onclick="sycms.del('<?php echo url('del',['id'=>$vo['id']]); ?>')" class="btn red"><i class="icon-trash-o"></i> 删除</a>
        </td>
      </tr>
     <?php if(is_array($vo['son']) || $vo['son'] instanceof \think\Collection || $vo['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vs): $mod = ($i % 2 );++$i;?>
      <tr>
        <td><?php echo $vs['id']; ?></td>       
        <td style="text-align:left; color:#888">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|--<?php echo $vs['title']; ?></td>
        <td style="text-align:left"><?php echo $vs['entitle']; ?></td>
        <td><?php if($vs['isshow'] == 1): ?><font color="#00CC99">显示</font><?php else: ?>隐藏<?php endif; ?></td>
        <td><input type="text" class="sorttext" value="<?php echo $vs['sort']; ?>"  onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" 
        onblur="sycms.sorts('<?php echo url('sorts'); ?>',<?php echo $vs['id']; ?>,this.value);" /></td>
        <td>
        <a href="<?php echo url('add',['id'=>$vs['id'],'nid'=>$vs['nid']]); ?>" class="btn"><i class="icon-edit"></i> 编辑</a>
        <a href="javascript:void(0);" onclick="sycms.del('<?php echo url('del',['id'=>$vs['id']]); ?>')" class="btn red"><i class="icon-trash-o"></i> 删除</a>
        </td>
      </tr>
      <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>
    </table>
</div>